package com.wsl.server;

import com.wsl.server.entity.User;


import javax.jws.WebService;


/**
 * @Author:wangshuliang
 * @Description:
 * @Date:Created in 16:42 2019/5/21
 * @Modified by:
 */
//name暴露的服务名称, targetNamespace:命名空间,设置为接口的包名倒写(默认是本类包名倒写). endpointInterface接口地址
@WebService(name = "test", targetNamespace = "http://server.wsl.com/",
        endpointInterface = "com.wsl.server.AppService")
public class AppServiceImpl implements AppService {


    @Override
    public String getUserName(String id) {
        System.out.println("=========================" + id);
        return "测试ID" + id;
    }


    @Override
    public User getUser1(String id) {
        return new User("王书亮");
    }
}
